package com.sky.service;

import com.sky.dto.OrdersPaymentDTO;
import com.sky.dto.OrdersSubmitDTO;
import com.sky.result.Result;
import com.sky.vo.OrderPaymentVO;
import com.sky.vo.OrderSubmitVO;

/**
 * @author ghy
 * @version 1.0.1
 * @date 2023-04-28 10:12:49
 */
public interface OrderService {

    /**
     * 客户催单
     * @param id
     * @return
     */
    Result reminder(Long id);

    /**
     * 提交订单
     * @param ordersSubmitDTO
     * @return
     */
    Result<OrderSubmitVO> submit(OrdersSubmitDTO ordersSubmitDTO);

    /**
     * 订单支付
     * @param ordersPaymentDTO
     * @return
     */
    OrderPaymentVO payment(OrdersPaymentDTO ordersPaymentDTO) throws Exception;

    /**
     * 支付成功，修改订单状态
     * @param outTradeNo
     */
    void paySuccess(String outTradeNo);

}
